import React from "react";
import {Layout} from "antd";
import GUtils from "@/utils";

import HomePage from "./home";
const {Content} = Layout;

export default class IndexPage extends React.Component {

    constructor(props) {
        super(props);
        this.state = {}
    }




    render() {
        let {children} = this.props;
        let isPage = window.location.href.match("^[^?]*/page");
        return isPage ? <HomePage>{children}</HomePage> : this.renderSimpleView();
    }

    // 基本页面
    renderSimpleView() {
        let {children} = this.props;
        return <Layout style={{minHeight: '100vh'}}>
            <Content>
                {children}
            </Content>
        </Layout>
    }


}